<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/1/6
  Time: 9:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>HelloWorld</title>
</head>
<body>

<a href="${pageContext.request.contextPath}/hello/world">HelloWorld</a><br/>
<a href="${pageContext.request.contextPath}/apple">Apple</a><br/>
<a href="${pageContext.request.contextPath}/banana">Banana</a><br/>
<a href="${pageContext.request.contextPath}/orange">Orange</a><br/>
<a href="${pageContext.request.contextPath}/grape">Grape</a><br/>
<a href="${pageContext.request.contextPath}/watermelon">Watermelon</a><br/>
<a href="${pageContext.request.contextPath}/animal/cat">cat</a><br/>
<a href="${pageContext.request.contextPath}/animal/pig">pig</a><br/>
<a href="${pageContext.request.contextPath}/animal/dog">dog</a><br/>
<a href="${pageContext.request.contextPath}/test/get/original/servlet/object">Test Get Original Servlet Object</a><br/>

<br/><br/>

<h3>测试请求参数</h3>
<a href="${pageContext.request.contextPath}/param/one/name/one/value?userName=tom&password=123456&userAge=20&grade=gold">测试一个名字一个值的请求参数</a><br/>

<br/>

<form action="${pageContext.request.contextPath}/param/one/name/multi/value" method="post">
  请选择你最喜欢的球队：
  <input type="checkbox" name="team" value="Brazil"/>巴西
  <input type="checkbox" name="team" value="German"/>德国
  <input type="checkbox" name="team" value="French"/>法国
  <input type="checkbox" name="team" value="Holland"/>荷兰
  <input type="checkbox" name="team" value="Italian"/>意大利
  <input type="checkbox" name="team" value="China"/>中国
  <br/>
  <input type="submit" value="保存"/>
</form>

<br/>

<form action="${pageContext.request.contextPath}/param/to/entity" method="post">
  姓名：<input type="text" name="empName"/><br/>
  年龄：<input type="text" name="empAge"/><br/>
  工资：<input type="text" name="empSalary"/><br/>
  <input type="submit" value="保存"/>
</form>

<br/>

<form action="${pageContext.request.contextPath}/param/to/entity/cascade" method="post">
  stuName：<input type="text" name="stuName" /><br/>
  school.schoolName：<input type="text" name="school.schoolName"/><br/>
  subjectList[0].subjectName：<input type="text" name="subjectList[0].subjectName"/><br/>
  subjectList[1].subjectName：<input type="text" name="subjectList[1].subjectName"/><br/>
  subjectList[2].subjectName：<input type="text" name="subjectList[2].subjectName"/><br/>
  subjectArray[0].subjectName：<input type="text" name="subjectArray[0].subjectName" /><br/>
  subjectArray[1].subjectName：<input type="text" name="subjectArray[1].subjectName" /><br/>
  subjectArray[2].subjectName：<input type="text" name="subjectArray[2].subjectName" /><br/>
  tearcherSet[0].teacherName：<input type="text" name="tearcherSet[0].teacherName"/><br/>
  tearcherSet[1].teacherName：<input type="text" name="tearcherSet[1].teacherName"/><br/>
  tearcherSet[2].teacherName：<input type="text" name="tearcherSet[2].teacherName"/><br/>
  tearcherSet[3].teacherName：<input type="text" name="tearcherSet[3].teacherName"/><br/>
  tearcherSet[4].teacherName：<input type="text" name="tearcherSet[4].teacherName"/><br/>
  scores['yuwen']：<input type="text" name="scores['yuwen']"/><br/>
  scores['shuxue']：<input type="text" name="scores['shuxue']"/><br/>
  scores['yingyu']：<input type="text" name="scores['yingyu']"/><br/>
  <button type="submit">保存</button>
</form>

<br/>

<h3>测试页面跳转控制</h3>
<a href="${pageContext.request.contextPath}/control/forward">使用指令转发请求</a><br/>
<a href="${pageContext.request.contextPath}/control/redirect">使用指令重定向请求</a><br/>
<a href="${pageContext.request.contextPath}/control/original/forward">使用原生request对象完成请求转发</a><br/>
<a href="${pageContext.request.contextPath}/control/original/redirect">使用原生response对象完成请求重定向</a>

<br/>
<h3>测试域对象的使用</h3>
<a href="${pageContext.request.contextPath}/attr/request/scope">测试请求域数据</a><br/>
<a href="${pageContext.request.contextPath}/attr/session/scope">测试Session域数据</a><br/>
<a href="${pageContext.request.contextPath}/attr/application/scope">测试Application域数据</a><br/>
<a href="${pageContext.request.contextPath}/test/model/and/view">测试ModelAndView</a>

<h3>测试view-controller</h3>
<a href="${pageContext.request.contextPath}/test/view/controller">测试view-controller</a>

</body>
</html>
